package aladyn.xmlparser;

import java.io.IOException;
import java.io.Reader;
import java.util.ArrayList;

import org.xml.sax.*;
import org.xml.sax.helpers.*;

public class LRSerializableXmlParser {
	
	public static ArrayList<String> parse(Reader input) throws SAXException, IOException{
		
		XMLReader xr = XMLReaderFactory.createXMLReader();
		LRSerializableXmlHandler handler = new LRSerializableXmlHandler();
		xr.setContentHandler(handler);
		xr.setErrorHandler(handler);
		xr.parse(new InputSource(input));
		return handler.getClasses();

	}

}
